package com.lkd.controller;

import com.lkd.dto.UserDto;
import com.lkd.entity.Role;
import com.lkd.service.IRoleService;
import com.lkd.service.IUserService;
import com.lkd.vo.PageBean;
import com.lkd.vo.UserVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/user-service/role")
public class RoleController {

    @Autowired
    private IRoleService  roleService;

    @GetMapping
    public List<Role> search(){
        return roleService.list();
    }



}
